package com.villaday.idf.adapter;

import android.content.Context;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsBaseAdapter;
import com.villaday.idf.model.PoPularCityEntity;
import com.villaday.idf.model.Surrounds_citiesEntity;


/**
 * 首页统计 GridView适配器
 */
public class ChoseCityGVAdapter extends AbsBaseAdapter<Surrounds_citiesEntity.BodyEntity> {

    public ChoseCityGVAdapter(Context context) {
        super(context, R.layout.item_chosecity_gv);
    }

    @Override
    public void onBindHolder(ViewHolder holder, Surrounds_citiesEntity.BodyEntity d, int position) {
        holder.setLayoutMinHeight(0)
                .bindTextView(R.id.tv_name, d.getName());
    }
}
